<template>
  <a-modal
    :visible="visible"
    title="招生单位维护"
    :width="700"
    @cancel="() => { $emit('cancel') }"
  >
    <a-table
      :columns="columns"
      :dataSource="list"
      size="middle"
      :pagination="false"
      :scroll="{ y: 240 }"
    >
      <span slot="serial" slot-scope="text, record, index">
        {{ index + 1 }}
      </span>
    </a-table>
    <a-button slot="footer" type="primary" @click="() => { $emit('cancel') }">关闭</a-button>
  </a-modal>
</template>

<script>

export default {
  props: ['visible', 'list'],
  data () {
    return {
      columns: [
        {
          title: '序号',
          width: 80,
          scopedSlots: { customRender: 'serial' }
        },
        {
          title: '类型',
          width: 100,
          dataIndex: 'lx'
        },
        {
          title: '内容',
          dataIndex: 'nr'
        }
      ]
    }
  },
  watch: {
  },
  created () {
  },
  methods: {
  }
}
</script>

<style>

</style>
